package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoArtDoor;
import com.muyu.danmo.mapper.DanmoArtDoorMapper;
import com.muyu.danmo.service.IDanmoArtDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 书画院校门头Service业务层处理
 *
 * @author yangle
 * @date 2024-10-31
 */
@Service
public class DanmoArtDoorServiceImpl implements IDanmoArtDoorService
{
    @Autowired
    private DanmoArtDoorMapper danmoArtDoorMapper;

    /**
     * 查询书画院校门头
     *
     * @param id 书画院校门头主键
     * @return 书画院校门头
     */
    @Override
    public DanmoArtDoor selectDanmoArtDoorById(Long id)
    {
        return danmoArtDoorMapper.selectDanmoArtDoorById(id);
    }

    /**
     * 查询书画院校门头列表
     *
     * @param danmoArtDoor 书画院校门头
     * @return 书画院校门头
     */
    @Override
    public List<DanmoArtDoor> selectDanmoArtDoorList(DanmoArtDoor danmoArtDoor)
    {
        return danmoArtDoorMapper.selectDanmoArtDoorList(danmoArtDoor);
    }

    /**
     * 新增书画院校门头
     *
     * @param danmoArtDoor 书画院校门头
     * @return 结果
     */
    @Override
    public int insertDanmoArtDoor(DanmoArtDoor danmoArtDoor)
    {
        return danmoArtDoorMapper.insertDanmoArtDoor(danmoArtDoor);
    }

    /**
     * 修改书画院校门头
     *
     * @param danmoArtDoor 书画院校门头
     * @return 结果
     */
    @Override
    public int updateDanmoArtDoor(DanmoArtDoor danmoArtDoor)
    {
        return danmoArtDoorMapper.updateDanmoArtDoor(danmoArtDoor);
    }

    /**
     * 批量删除书画院校门头
     *
     * @param ids 需要删除的书画院校门头主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtDoorByIds(Long[] ids)
    {
        return danmoArtDoorMapper.deleteDanmoArtDoorByIds(ids);
    }

    /**
     * 删除书画院校门头信息
     *
     * @param id 书画院校门头主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtDoorById(Long id)
    {
        return danmoArtDoorMapper.deleteDanmoArtDoorById(id);
    }
}
